$OpenBSD: patch-cmake_FindFREERDP_cmake,v 1.1 2015/11/07 13:32:35 ajacoutot Exp $

Build with freerdp >=1.2.

--- cmake/FindFREERDP.cmake.orig	Fri Oct 10 14:25:23 2014
+++ cmake/FindFREERDP.cmake	Sat Nov  7 07:51:39 2015
@@ -24,21 +24,9 @@ set(FREERDP_DEFINITIONS ${PC_FREERDP_CFLAGS_OTHER})
 find_path(FREERDP_INCLUDE_DIR NAMES freerdp/freerdp.h
 	HINTS ${PC_FREERDP_INCLUDEDIR} ${PC_FREERDP_INCLUDE_DIRS})
 
-find_library(FREERDP_LIBRARY NAMES freerdp-core
+find_library(FREERDP_LIBRARY NAMES freerdp
 	HINTS ${PC_FREERDP_LIBDIR} ${PC_FREERDP_LIBRARY_DIRS})
 
-find_library(FREERDP_GDI_LIBRARY NAMES freerdp-gdi
-	HINTS ${PC_FREERDP_LIBDIR} ${PC_FREERDP_LIBRARY_DIRS})
-
-find_library(FREERDP_LOCALE_LIBRARY NAMES freerdp-locale
-	HINTS ${PC_FREERDP_LIBDIR} ${PC_FREERDP_LIBRARY_DIRS})
-
-find_library(FREERDP_RAIL_LIBRARY NAMES freerdp-rail
-	HINTS ${PC_FREERDP_LIBDIR} ${PC_FREERDP_LIBRARY_DIRS})
-
-find_library(FREERDP_CODEC_LIBRARY NAMES freerdp-codec
-	HINTS ${PC_FREERDP_LIBDIR} ${PC_FREERDP_LIBRARY_DIRS})
-
 find_library(FREERDP_CLIENT_LIBRARY NAMES freerdp-client
 	HINTS ${PC_FREERDP_LIBDIR} ${PC_FREERDP_LIBRARY_DIRS})
 
@@ -46,7 +34,7 @@ include(FindPackageHandleStandardArgs)
 
 find_package_handle_standard_args(FREERDP DEFAULT_MSG FREERDP_LIBRARY FREERDP_INCLUDE_DIR)
 
-set(FREERDP_LIBRARIES ${FREERDP_LIBRARY} ${FREERDP_GDI_LIBRARY} ${FREERDP_LOCALE_LIBRARY} ${FREERDP_RAIL_LIBRARY} ${FREERDP_CODEC_LIBRARY} ${FREERDP_CLIENT_LIBRARY})
+set(FREERDP_LIBRARIES ${FREERDP_LIBRARY} ${FREERDP_CLIENT_LIBRARY})
 set(FREERDP_INCLUDE_DIRS ${FREERDP_INCLUDE_DIR})
 
 mark_as_advanced(FREERDP_INCLUDE_DIR FREERDP_LIBRARY)
